<?php
  /**/
  //defined('ACC')||exit('ACC Denied');   
  defined('ACC')||exit('ACC Denied'); 
  abstract class db{
      //连接服务器，return bool
      public abstract function connect($h,$u,$p); 
      //发送查询，return mixed bool/resource;
      public abstract function query($sql);  
      //查询多行数据；return array/bool;
      public abstract function getAll($sql);
      //查询单行数据
      public abstract function getRow($sql);
      //查询单个数据
      public abstract function getOne($sql);
      //自动执行insert和update
      public abstract function autoExecute($arr, $table,$mode='insert',$where = '');
      
  };
  
  
  
  
  
?>
